package org.huang.properties.bean;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @描述: 用来读取配置文件的随机数
 * @作者 Mr.Huang
 * @创建时间 2017-08-08
 * @版本: 1.0
 */

@Component
public class RandomValuePropertyBean {

    @Value("${my.secret}")
    private String secret;

    @Value("${my.uuid}")
    private String uuid;

    @Value("${my.number}")
    private Integer number;

    @Value("${my.bignumber}")
    private Long bigNumber;


    public String getSecret() {
        return secret;
    }

    public void setSecret(String secret) {
        this.secret = secret;
    }

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    public Long getBigNumber() {
        return bigNumber;
    }

    public void setBigNumber(Long bigNumber) {
        this.bigNumber = bigNumber;
    }

    @Override
    public String toString() {
        return "RandomValuePropertyBean{" +
                "secret='" + secret + '\'' +
                ", uuid='" + uuid + '\'' +
                ", number=" + number +
                ", bigNumber=" + bigNumber +
                '}';
    }
}
